package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.DealerAccountDO;
import com.mhc.suzuki.dal.query.DealerAccountQuery;

import java.util.List;


/**
 * Manager for DealerAccount.
 */
public interface DealerAccountManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DealerAccountQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DealerAccountQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DealerAccountDO record);

    /**
     * insert selective.
     */
    long insertSelective(DealerAccountDO record);

    /**
     * select by query condition.
     */
    List<DealerAccountDO> selectByQuery(DealerAccountQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DealerAccountDO> selectByQueryWithPage(DealerAccountQuery query);

    /**
     * select by primary key.
     */
    DealerAccountDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DealerAccountDO record,  DealerAccountQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DealerAccountDO record, DealerAccountQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DealerAccountDO record);
}